<?php

namespace App\Utils;

/**
 * 系统菜单配置
 */
class MenuUtil
{
    /**
     * 后台系统菜单配置
     * @return array
     */
    public static function adminMenu()
    {
        $menu = array([
            "title" => "会员",
            "id" => "2-0-0",
            "childs" => [
                [
                    "title" => "用户管理",
                    "id" => "2-1-0",
                    "childs" => [
                        [ "title" => "用户列表", "id" => "2-1-1"],
                    ]
                ],
                [
                    "title" => "投资管理",
                    "id" => "2-2-0",
                    "childs" => [
                        [ "title" => "投资列表", "id" => "2-2-1" ],
                    ]
                ],
            ]
        ],
        [
        "title" => "系统设置",
        "id" => "1-0-0",
        "childs" => [
            [
                "title" => "参数设置",
                "id" => "1-1-0",
                "childs" => [
                    [ "title" => "系统后台", "id" => "1-1-1"],
                    [ "title" => "站点设置", "id" => "1-1-2"],
                ]
            ],
            [
                "title" => "安全管理",
                "id" => "1-2-0",
                "childs" => [
                    [ "title" => "管理员",   "id" => "1-2-1"],
                    [ "title" => "角色管理", "id" => "1-2-2"],
                    [ "title" => "操作日志", "id" => "1-2-3"],
                ]
            ],
        ]
    ]
 );

        return $menu;
    }
}